package cn.pfund.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

 /**
 * 企业信息
 * @author zhaominglei qq:351024274，专注于网站、app和游戏开发。
 * @date 2017年1月20日
 */
@Entity
@Table(name="pfund_companyinfo")
public class Companyinfo extends BaseEntity implements Serializable {
	private static final long serialVersionUID = -8880586328153076438L;
	/** 企业信息类别 **/
	private CompanyinfoType companyinfoType;
	/** 内容 **/
	private String content;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name="companyinfo_type_id")
	public CompanyinfoType getCompanyinfoType() {
		return companyinfoType;
	}
	public void setCompanyinfoType(CompanyinfoType companyinfoType) {
		this.companyinfoType = companyinfoType;
	}
	@Column(columnDefinition="LONGTEXT")
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
}
